package com.binc.testspring.study.jdkObjservable.example;

/**
 * Copyright (C), 2019-2021, XXX 奇限公司
 * FileName: Test
 * Autho: binC
 * Date:  2021/11/24 13:57
 * Description:
 * History:
 * <author>     <time>      <version>       <desc>
 * 作者姓名       修改时间      版本          描述
 */
public class Test {
    public static void main(String[] args) {
        EventListener listener = new MouseEventListener();

        Mouse mouse = new Mouse();
        mouse.addListener(MouseEventType.ON_CLICK,listener);
        mouse.addListener(MouseEventType.ON_MOVE,listener);

        mouse.click();
        mouse.move();
    }
}
